﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CKEditorBrowseImageFile.aspx.cs" Inherits="WebBanThuoc.pageSub.CKEditorBrowseImageFile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Chọn ảnh</title>
    <link rel="shortcut icon" href="../img/admin.ico" /></link>
    <script src="../js/jquery-1.7.2.js" type="text/javascript"></script>
    <style type="text/css">
        div{
                float:left;	
            }
    </style>
    <script type="text/javascript" language="javascript">
        function selectImage(tag) {
            var urlI = tag.attr('src');
            window.opener.CKEDITOR.tools.callFunction(<%=Request.QueryString["CKEditorFuncNum"] == null?"''": Request.QueryString["CKEditorFuncNum"]%>,urlI)
            window.close();
            return false;
        }
        
    </script>
</head>
<body>
    <form id="imageForm" runat="server">
    <div style="width:890px;">
        <%string[] dataImage = (string[])Session["pageCKEditorBrowseImageFile_dataImage"];
          if (dataImage != null)
          {
              for (int i = 0; i < dataImage.Length; i++)
              { %>
            <input type="image" id="t1" style="width:100px; height:100px; padding-left:10px" alt="" onclick="selectImage($(this)); return false;" src="<%=dataImage[i] %>" />
        <%}
          }%>
    </div>
    </form>
</body>
</html>
